﻿using QFramework;

namespace HKTools
{
    /// <summary>
    /// 设置相机的 MoveSpeed 和 ZoomSpeed
    /// </summary>
    public class CMD_SetMoveAndZoomSpeed : AbstractCommand
    {
        float moveSpeed;
        float zoomSpeed;

        public CMD_SetMoveAndZoomSpeed(float _moveSpeed, float _zoomSpeed)
        {
            moveSpeed = _moveSpeed;
            zoomSpeed = _zoomSpeed;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_TargetCamSystem>().SetMoveAndZoomSpeed(moveSpeed, zoomSpeed);
        }
    }
}